﻿using System;

namespace Ultima.Xna
{
    /// <summary>
    /// Represents an error that occured when a service was not found in the Game's service container
    /// </summary>
    public class ServiceNotFoundException : Exception
    {
        /// <summary>
        /// Initializes an instance of Ultima.Xna.ServiceNotFoundException
        /// </summary>
        /// <param name="serviceName">The name of the service that was not found</param>
        public ServiceNotFoundException(string serviceName)
            : base(String.Format("{0} Service is required and was not found in the Game.Services container", serviceName))
        {

        }
    }
}
